package com.ziqikeji.thread;

/**
 * 设计一个程序，启动三个线程A,B,C,各个线程只打印特定的字母，各打印5次，例如A线程只打印‘A’。要求在控制台依次显示“ABCABC…”
 * <p>
 * Created by Admin on 2018/8/8.
 */
public class WaitNotifyTwo {
    public static void main(String[] args) {
        int resource = 0;
        MyThread threadOne = new MyThread(resource);
        MyThread threadTwo = new MyThread(resource);
        MyThread threadThree = new MyThread(resource);

        threadOne.start();
        threadTwo.start();
        threadThree.start();
    }
}
